package com.vacation.vacationdemo.mapper;

import com.vacation.vacationdemo.entity.Vacation;
import com.vacation.vacationdemo.vo.VacationVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VacationMapper {

    List<VacationVo> selectVacation(Integer empId);

    void cancelApply(Integer vacationId);

    int insertVacation(Vacation vacation);

    List<VacationVo> dynamicSearchVacation(@Param("deptId") Integer deptId,
                                           @Param("empName") String empName,
                                           @Param("vacationStatusId") Integer vacationStatusId);


    void doBatchApprove(@Param("vacationIds") List<Integer> vacationIds, @Param("vacationStatusId") Integer vacationStatusId);


    void doReject(@Param("vacationIds")  List<Integer> vacationIds);


    void insertBatch(List<Vacation> list);

}
